<table class="table table-bordered">
    <thead>
    <tr>
        <th width="12%">订单号</th>
        <th width="6%">订单积分</th>
        <th width="6%">兑换用户ID</th>
        <th width="12%">兑换用户</th>
        <th width="12%">订单时间</th>
        <if condition="$params.status eq 2">
            <th width="12%">退回时间</th>
        </if>
        <th width="6%">操作</th>
    </tr>
    </thead>
    <tbody>
    <volist name="list" id="row" key="k">
        <tr class="listBg">
            <td>{$row.order_sn}</td>
            <td>{$row.score}</td>
            <td>{$row.user_id}</td>
            <td>{$row.user_name}</td>
            <td>{$row.create_time}</td>
            <if condition="$params.status eq 2">
                <td>{$row.return_time}</td>
            </if>
            <td>
                <if condition="$row.status eq 1">
                    <a href="{:U('UserExchange/userExchangeInfo',['id'=>$row['id']])}"
                       target="_blank">查看</a>
                    <a href="#" onclick="return return_user_exchange('{$row.id}')">退回</a>
                    <else/>
                    <a href="{:U('UserExchange/userExchangeInfo',['id'=>$row['id']])}"
                       target="_blank">查看</a>
                </if>
            </td>
        </tr>
    </volist>
    </tbody>
</table>
<div class="pageFaye">
    <div class="pager">{$page}</div>
    <div class="clear"></div>
</div>
